import request from '../utils/request.js';

//  文章分页
export const postArticlei = (page, count) => {
  return request({
    method: 'post',
    url: '/es/pageQueryArticle',
    data: { pageNum: page, pageSize: count },
  });

  //  最新文章
  export const postNewArticle = (page, count) => {
    return request({
      method: 'post',
      url: '/es/pageQueryArticle',
      data: { pageNum: page, pageSize: count },
    });
  };
};
